<template>
	<view class="charts-box">
		<qiun-data-charts type="map" :chartData="chartData" />
	</view>
</template>

<script>
	import data from '@/json/map/js.json'
	
	export default {
		data() {
			return {
				chartData: {},
			};
		},
		onReady() {
			this.getServerData();
		},
		methods: {
			getServerData() {
				let res = {
					series: data.features
				};
				this.chartData = JSON.parse(JSON.stringify(res));

			},
		}
	};
</script>

<style scoped>
	/* 请根据实际需求修改父元素尺寸，组件自动识别宽高 */
	.charts-box {
		width: 100%;
		height: 300px;
	}
</style>
